import request from '@/utils/request'

// 查询SysWeeklyZcmplan列表
export function listSysWeeklyZcmplan(query) {
  return request({
    url: '/system/weeklyplan/list',
    method: 'get',
    params: query
  })
}

// 查询SysWeeklyZcmplan详细
export function getSysWeeklyZcmplan(wkYear) {
  return request({
    url: '/system/weeklyplan/' + wkYear,
    method: 'get'
  })
}

// 新增SysWeeklyZcmplan
export function addSysWeeklyZcmplan(data) {
  return request({
    url: '/system/weeklyplan',
    method: 'post',
    data: data
  })
}

// 修改SysWeeklyZcmplan
export function updateSysWeeklyZcmplan(data) {
  return request({
    url: '/system/weeklyplan',
    method: 'put',
    data: data
  })
}

// 删除SysWeeklyZcmplan
export function delSysWeeklyZcmplan(wkYear) {
  return request({
    url: '/system/weeklyplan/' + wkYear,
    method: 'delete'
  })
}

export function listWeeks4TargetDash() {
  return request({
    url: '/system/weeklyplan/listWeeks4TargetDash',
    method: 'get'
  })
}

export function listQlData(query) {
  return request({
    url: '/system/weeklyplan/listQlData',
    method: 'get',
    params: query
  })
}

export function listQtData(query) {
  return request({
    url: '/system/weeklyplan/listQtData',
    method: 'get',
    params: query
  })
}

export function listRefund(query) {
  return request({
    url: '/system/weeklyplan/listRefund',
    method: 'get',
    params: query
  })
}


export function listChData(query) {
  return request({
    url: '/system/weeklyplan/listChData',
    method: 'get',
    params: query
  })
}

export function listYearMonth(query) {
  return request({
    url: '/system/weeklyplan/listYearMonth',
    method: 'get',
    params: query
  })
}